package org.vergil.core.designpattern.handler;

/**
 * Created by vergil on 17-3-21.
 */
public class ConcreteHandlerB extends AbstractHandler {
    @Override
    public void handleRequest(String request) {
        if (request.equals("B")){
            System.out.println("B");
        } else {
            this.successor.handleRequest(request);
        }
    }
}
